package com.showsu.editor.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.showsu.editor.entity.po.TblUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author: William
 * @Description: h5_user的dao层
 * @Date: Created in 5:15 下午 2023/3/21
 * @Modified By:
 */
@Mapper
public interface TblUserMapper extends BaseMapper<TblUser> {

    /**
     * 查询套餐未过期的用户
     * @param params
     * vipEndTime - 到期时间
     * @return
     */
    List<TblUser> findNotExpiredUser(Map<String, Object> params);

    /**
     * 查询套餐时间过期的用户
     * @return
     */
    List<TblUser> findExpiredUser();

}
